import request from "./request"
// 首页数据接口
export const index_index = ()=>request("/index/index")
// 专题页面数据请求
export const topic_list = (v)=>request("/topic/list",v)
// 全部分类数据 
export const catalog_index = ()=>request("/catalog/index")
// 获取当前分类数据 /catalog/current
export const catalog_current = (v)=>request("/catalog/current",v)
// 登录接口（没有账号自动注册） /auth/loginByWeb
export const auth_loginByWeb = (params)=>request("/auth/loginByWeb",params)
// /goods/list 分类页面商品列表请求
export const goods_list = (params)=>request("/goods/list",params)
// /goods/category 分类数据获取
export const goods_category = (params)=>request("/goods/category",params)
// /search/index  搜索窗口数据
export const search_index = (params)=>request("/search/index",params)
// /search/clearhistory 清除历史记录
export const search_clearhistory = (params)=>request("/search/clearhistory",params)
// /search/helper 实时搜索功能
export const search_helper = (params)=>request("/search/helper",params)
// /goods/list 搜索框商品搜索
export const sgoods_list = (params)=>request("/goods/list",params)
// /brand/detail 品牌详情
export const brand_detail = (params)=>request("/brand/detail",params)
// /goods/detail 产品详情
export const goods_detail = (params)=>request("/goods/detail",params)
// /goods/related 相关产品
export const goods_related = (params)=>request("/goods/related",params)
// /cart/add  加入购物车
export const cart_add = (params)=>request("/cart/add",params)
// /cart/index 获取购物车数据
export const cart_index = (params)=>request("/cart/index",params)
// /cart/delete 删除商品
export const cart_delete = (params)=>request("/cart/delete",params)
// 获取购物车商品数量 /cart/goodscount
export const cart_goodscount = (params)=>request("/cart/goodscount",params)
// /cart/checked 切换商品选中状态
export const cart_checked = (params)=>request("/cart/checked",params)
// /cart/update 商品步进器
export const cart_update = (params)=>request("/cart/update",params)





